import Vue from 'vue'
import SvgIcon from '@/components/SvgIcon'// svg component

// register globally
Vue.component('svg-icon', SvgIcon)
// require.context wepkeepuicl打包工具用来处理svg图片
const req = require.context('./svg', false, /\.svg$/)
// 获取匹配成功的路径map映射出去
const requireAll = requireContext => requireContext.keys().map(requireContext)
requireAll(req)
